.class Lcom/example/inshopbuy/InShopBuyShopsAdapter$1;
.super Ljava/lang/Object;
.source "InShopBuyShopsAdapter.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/inshopbuy/InShopBuyShopsAdapter;->getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/inshopbuy/InShopBuyShopsAdapter;


# direct methods
.method constructor <init>(Lcom/example/inshopbuy/InShopBuyShopsAdapter;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/inshopbuy/InShopBuyShopsAdapter$1;->this$0:Lcom/example/inshopbuy/InShopBuyShopsAdapter;

    .line 97
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 4
    .param p1, "arg0"    # Landroid/view/View;

    .prologue
    .line 100
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Integer;

    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v0

    .line 101
    .local v0, "id":I
    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/example/inshopbuy/InShopBuyShopsAdapter$1;->this$0:Lcom/example/inshopbuy/InShopBuyShopsAdapter;

    # getter for: Lcom/example/inshopbuy/InShopBuyShopsAdapter;->context:Landroid/content/Context;
    invoke-static {v2}, Lcom/example/inshopbuy/InShopBuyShopsAdapter;->access$0(Lcom/example/inshopbuy/InShopBuyShopsAdapter;)Landroid/content/Context;

    move-result-object v2

    const-class v3, Lcom/example/inshopbuy/InShopMerchantActivity;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 102
    .local v1, "intent":Landroid/content/Intent;
    iget-object v2, p0, Lcom/example/inshopbuy/InShopBuyShopsAdapter$1;->this$0:Lcom/example/inshopbuy/InShopBuyShopsAdapter;

    # getter for: Lcom/example/inshopbuy/InShopBuyShopsAdapter;->shopBeans:Ljava/util/List;
    invoke-static {v2}, Lcom/example/inshopbuy/InShopBuyShopsAdapter;->access$1(Lcom/example/inshopbuy/InShopBuyShopsAdapter;)Ljava/util/List;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    if-lez v2, :cond_0

    .line 103
    const-string v3, "shopid"

    iget-object v2, p0, Lcom/example/inshopbuy/InShopBuyShopsAdapter$1;->this$0:Lcom/example/inshopbuy/InShopBuyShopsAdapter;

    # getter for: Lcom/example/inshopbuy/InShopBuyShopsAdapter;->shopBeans:Ljava/util/List;
    invoke-static {v2}, Lcom/example/inshopbuy/InShopBuyShopsAdapter;->access$1(Lcom/example/inshopbuy/InShopBuyShopsAdapter;)Ljava/util/List;

    move-result-object v2

    invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/example/inshopbuy/InShopBean;

    invoke-virtual {v2}, Lcom/example/inshopbuy/InShopBean;->getId()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v3, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 104
    iget-object v2, p0, Lcom/example/inshopbuy/InShopBuyShopsAdapter$1;->this$0:Lcom/example/inshopbuy/InShopBuyShopsAdapter;

    # getter for: Lcom/example/inshopbuy/InShopBuyShopsAdapter;->context:Landroid/content/Context;
    invoke-static {v2}, Lcom/example/inshopbuy/InShopBuyShopsAdapter;->access$0(Lcom/example/inshopbuy/InShopBuyShopsAdapter;)Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v2, v1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    .line 106
    :cond_0
    return-void
.end method
